package com.zheng.hr.dao.mapper;

import com.zheng.hr.dao.model.HrPersonalRecords;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * hr_personal_records 人事档案信息 Mapper 接口
 * </p>
 *
 * @author likun
 * @since 2018-01-08
 */
public interface HrPersonalRecordsMapper extends BaseMapper<HrPersonalRecords> {
    List<Map<String, Object>> selectPersonalRecordsPage(HrPersonalRecords personalRecords);

    Integer selectPersonalRecordsCount(HrPersonalRecords personalRecords);

    List<Map<String, Object>> selectPersonalRecordsMaps(HrPersonalRecords personalRecords);

    Integer selectPersonalRecordsMapsCount(@Param("ids") List<Integer> ids, @Param("realName") String realName, @Param("jobNumber") String jobNumber,
                                           @Param("positionPath") String positionPath, @Param("organizationPath") String organizationPath,
                                           @Param("idCard") String idCard);

    List<Map<String, Object>> selectAllUsersName();

    Map<String, Object> getPersonalRecordsInfo(Integer userId);
}
